import request from '@/utils/request'

// 查询项目收录列表
export function listProjectInclusion(query) {
  return request({
    url: '/projectInclusion/list',
    method: 'get',
    params: query
  })
}

// 查询项目收录详细
export function getProjectInclusion(id) {
  return request({
    url: '/projectInclusion/' + id,
    method: 'get'
  })
}

export function getExamineStatus(projectId) {
  return request({
    url: '/inclusionExamine/getExamineStatus/' + projectId,
    method: 'get'

  })
}

// 新增项目收录
export function addProjectInclusion(data) {
  return request({
    url: '/projectInclusion',
    method: 'post',
    data: data
  })
}

// 修改项目收录
export function updateProjectInclusion(data) {
  return request({
    url: '/projectInclusion',
    method: 'put',
    data: data
  })
}

// 删除项目收录
export function delProjectInclusion(id) {
  return request({
    url: '/projectInclusion/' + id,
    method: 'delete'
  })
}
